/ Assembly List / LJCNetCommon / HTMLBuilder / GetEnd

Namespace - LJCNetCommon


Parameters
name - The element name.
textState - The current text state values.
addIndent - Indicates if the element can be indented.

Returns

The element end tag.

Syntax

C#
public String GetEnd(String name, TextState textState, Boolean addIndent = True)

Gets the element end tag.

Remarks

GetEnd() is a "GetText" method which creates the element closing tag and returns the text value.

Example

C#
// Root Method Begin
var textState = new TextState();

// Defaults: IndentCharCount = 2, LineLimit = 80, WrapEnabled = false.
var hb = new HTMLBuilder(textState);

// Example Method:
// Defaults: close = true.
hb.End("head", textState);
var result = hb.ToString();

// result:
// </head>

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.